#include "CPlayer.h"
#include "CloneTimer.h"

CPlayer::CPlayer(): iType(-1), iBoomNum(0), iLifeNum(0), iState(0), iScore(0), iGraze(0), iGoal(0), CAlive(){}

CPlayer::CPlayer(int inIType, int inIBoomNum, int inILifeNum, int inIState, int inIScore, int inIGraze, int inIGoal, 
	int inIHP, CMath* inMaArea, float inFSpeedX, float inFSpeedY, int inIPower, 
	int inILocusNum, vector<ALLEGRO_BITMAP*>::const_iterator begin, vector<ALLEGRO_BITMAP*>::const_iterator end, CPoint inMaCoordinate):
	
	iType(inIType), iBoomNum(inIBoomNum), iLifeNum(inILifeNum), iState(inIState), iScore(inIScore), iGraze(inIGraze), iGoal(inIGoal),
	CAlive(inIHP, inMaArea, inFSpeedX, inFSpeedY, inIPower, begin, end, inMaCoordinate){}

CPlayer::CPlayer(const CPlayer& inCPlayer): iType(inCPlayer.iType), iBoomNum(inCPlayer.iBoomNum), iLifeNum(inCPlayer.iLifeNum), 
	iState(inCPlayer.iState), iScore(inCPlayer.iScore), iGraze(inCPlayer.iGraze), iGoal(inCPlayer.iGoal), 
	CAlive(inCPlayer){}

CPlayer& CPlayer::operator=(const CPlayer& inCPlayer){
	if(this != &inCPlayer){
		iType = inCPlayer.iType; 
		iBoomNum = inCPlayer.iBoomNum; 
		iLifeNum = inCPlayer.iLifeNum; 
		iState = inCPlayer.iState; 
		iScore = inCPlayer.iScore; 
		iGraze = inCPlayer.iGraze; 
		iGoal = inCPlayer.iGoal;
	}
	return *this;
}

CPlayer::~CPlayer(){}

int CPlayer::GetIType(){
	return iType;
}

void CPlayer::SetIType(int inIType){
	iType = inIType;
}

int CPlayer::GetIBoomNum(){
	return iBoomNum;
}

void CPlayer::SetIBoomNum(int inIBoomNum){
	iBoomNum = inIBoomNum;
}

int CPlayer::GetILifeNum(){
	return iLifeNum;
}

void CPlayer::SetILifeNum(int inILifeNum){
	iLifeNum = inILifeNum;
}

int CPlayer::GetIState(){
	return iState;
}

void CPlayer::SetIState(int inIState){
	iState = inIState;
}

int CPlayer::GetIScore(){
	return iScore;
}

void CPlayer::SetIScore(int inIScore){
	iScore = inIScore;
}

int CPlayer::GetIGraze(){
	return iGraze;
}

void CPlayer::SetIGraze(int inIGraze){
	iGraze = inIGraze;
}

int CPlayer::GetIGoal(){
	return iGoal;
}

void CPlayer::SetIGoal(int inIGoal){
	iGoal = inIGoal;
}